cmake_minimum_required(VERSION 3.15)
project(proj1 CXX)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

include_directories(src src/systems src/ecs_sys src/ecs_comp src/thirdParty C:/Users/niuji/.conan2/p)
# target_include_directories()

file(GLOB_RECURSE SOURCES "src/*.cpp")

# 排除 src/test/ 和 src/thirdParty/ 目录下的 .cpp 文件
list(FILTER SOURCES EXCLUDE REGEX "src/(test|thirdParty)/.*\.cpp$")
# aux_source_directory(src SOURCES)
add_executable(proj1 ${SOURCES})

# 查找Vulkan
find_package(Vulkan REQUIRED)
message(STATUS "Vulkan Include Dir:  ${Vulkan_INCLUDE_DIR}")
message(STATUS "Vulkan Library:  ${Vulkan_LIBRARY}")
# find_package(tinyobjloader REQUIRED)
find_package(VulkanHeaders)
find_package(glew)
find_package(glfw3)
find_package(JPEG)
find_package(PNG)
find_package(Boost)
find_package(glm)
find_package(assimp)
find_package(ZLIB)
target_link_libraries(proj1 Vulkan::Vulkan vulkan-headers::vulkan-headers GLEW::GLEW glfw JPEG::JPEG PNG::PNG boost::boost glm::glm assimp::assimp ZLIB::ZLIB)
# tinyobjloader::tinyobjloader

# install(TARGETS hello DESTINATION "."
#         RUNTIME DESTINATION bin
#         ARCHIVE DESTINATION lib
#         LIBRARY DESTINATION lib
#         )

